package cn.jnetty.ioc.executer;


import cn.jnetty.ioc.executer.pool.JnettyRunnablePool;
import cn.jnetty.ioc.executer.pool.JnettyWorker;

import java.util.concurrent.Executor;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/4/6 18:30
 * 描述：
 */
public class JnettyWorkerImpl extends AbstractJnettyRunable implements JnettyWorker {

	public JnettyWorkerImpl(Executor executor, String threadName, JnettyRunnablePool selectorRunnablePool) {
		super(executor, threadName, selectorRunnablePool);
	}
	@Override
	public void submit(Runnable runnable) {
		registerTask(runnable);
	}

	@Override
	public long getTaskCount() {
		return super.getTaskCount();
	}
}